import multiprocessing
import datetime
import logging

def cal(i):
    a = 0
    for _ in range(1000000):
        a += 1
        print(a)
    return i, a

if __name__ == '__main__':
    star = datetime.datetime.now()
    cal(1)
    cost = datetime.datetime.now() - star
    print(cost)
